package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-11-29 14:11:05 
 * @description 外部接入渠道
 */
@Data
@TableName(value ="yx_sys_channel")
@ApiModel(value = "外部接入渠道" , description="yx_sys_channel")
public class YxSysChannelEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "channel_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="渠道id")
    private Long channelId;

    @TableField(value="channel_code")
    @ApiModelProperty(value="渠道编码")
    private String channelCode;

    @TableField(value="channel_name")
    @ApiModelProperty(value="渠道名称")
    private String channelName;

    @TableField(value="auth_token")
    @ApiModelProperty(value="渠道接入认证字token")
    private String authToken;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态 0：禁用 1：启用")
    private Integer status;

}
